﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace Communication.Model.speedData
{
    [StructLayoutAttribute(LayoutKind.Sequential, Pack = 4)]
    public struct ChannelSpeed
    {
        public Int16 ChID;
        public float rpm;
<<<<<<< HEAD
=======
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 131072)]
        public float[] RpmTimewave;
>>>>>>> b19c74022a89f58c8c960e2031f2461983bbb895
    }
    [StructLayoutAttribute(LayoutKind.Sequential, Pack = 4)]
    public struct SpeedData
    {
        //public UInt16 ChannelID;
        public UInt16 Year;
        public byte Month;
        public byte Day;
        public byte Hour;
        public byte Minute;
        public byte Second;
        public UInt16 Millisecond;

        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 6)]
        public ChannelSpeed[] ChSpeeds;
    }
}
